import axios from "@/request"

interface IUserLogin {
    username: string,
    password: string
}

function useLogin(params: IUserLogin) {
    return axios.post("/login", {
        ...params
    })
}

export {
    useLogin
}